package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.LeaseDetailsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 租赁土地详情
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-15 20:27:55
 */
public interface LeaseDetailsMapper extends BaseMapper<LeaseDetailsDO> {

    List<LeaseDetailsDO> selectByList(@Param("landNo") String landNo, @Param("leaseId") Integer leaseId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    Long countOrder(@Param("landNo") String landNo, @Param("leaseId") Integer leaseId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    Integer updateStatus(@Param("id")Long id,@Param("isLease") Integer isLease, @Param("originalIsLease") Integer originalIsLease);
}
